package com.bwie.controller;

import com.bwie.common.domain.Menu;
import com.bwie.common.result.Result;
import com.bwie.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @className: MenuController
 * @Description: TODO
 * @version: v1.８.0
 * @author: 房新路
 * @date: 2025/8/4 17:50
 */
@RestController
public class MenuController {
    @Autowired
    private MenuService menuService;
    @GetMapping("menuList")
    public Result menuList(){
        List<Menu> list=menuService.menuList();
        return Result.success(list);
    }
}